package com.abss.vote.model;

import com.fasterxml.jackson.annotation.JsonProperty;

import java.util.List;

/**
 * 奖项表
 */
public class Prize {

    @JsonProperty("PRIZE_ID")
    private Integer PRIZE_ID;

    @JsonProperty("PRIZE_NAME")
    private String PRIZE_NAME;//奖项名称

    @JsonProperty("PRIZE_USERNUMBER")
    private Integer PRIZE_USERNUMBER;//奖项数量

    @JsonProperty("PRIZE_GOODS")
    private String PRIZE_GOODS;//奖品名称

    @JsonProperty("PRIZE_GOODS_IMG")
    private String PRIZE_GOODS_IMG;//奖品图片路径

    @JsonProperty("PRIZE_GOODS_NUMBER")
    private String PRIZE_GOODS_NUMBER;//奖品数量

    @JsonProperty("PRIZE_INSTRUCTION")
    private String PRIZE_INSTRUCTION;//奖项简介

    @JsonProperty("WORK_ID")
    private Integer WORK_ID;//作品id


    //新添加 活动ID

    @JsonProperty("ACTIVITY_ID")
    private Integer ACTIVITY_ID;
    //新添加 排序序号
    @JsonProperty("ORDER_NUM")
    private Integer ORDER_NUM;

    private List<UserWorkVo> workList;

    public Integer getACTIVITY_ID() {
        return ACTIVITY_ID;
    }

    public void setACTIVITY_ID(Integer ACTIVITY_ID) {
        this.ACTIVITY_ID = ACTIVITY_ID;
    }

    public Integer getORDER_NUM() {
        return ORDER_NUM;
    }

    public void setORDER_NUM(Integer ORDER_NUM) {
        this.ORDER_NUM = ORDER_NUM;
    }

    public Integer getWORK_ID() {
        return WORK_ID;
    }

    public void setWORK_ID(Integer WORK_ID) {
        this.WORK_ID = WORK_ID;
    }

    public Integer getPRIZE_ID() {
        return PRIZE_ID;
    }

    public void setPRIZE_ID(Integer PRIZE_ID) {
        this.PRIZE_ID = PRIZE_ID;
    }

    public String getPRIZE_NAME() {
        return PRIZE_NAME;
    }

    public void setPRIZE_NAME(String PRIZE_NAME) {
        this.PRIZE_NAME = PRIZE_NAME == null ? null : PRIZE_NAME.trim();
    }

    public Integer getPRIZE_USERNUMBER() {
        if(PRIZE_USERNUMBER==null)return 0;
        return PRIZE_USERNUMBER;
    }

    public void setPRIZE_USERNUMBER(Integer PRIZE_USERNUMBER) {
        this.PRIZE_USERNUMBER = PRIZE_USERNUMBER;
    }

    public String getPRIZE_GOODS() {
        return PRIZE_GOODS;
    }

    public void setPRIZE_GOODS(String PRIZE_GOODS) {
        this.PRIZE_GOODS = PRIZE_GOODS == null ? null : PRIZE_GOODS.trim();
    }

    public String getPRIZE_GOODS_IMG() {
        return PRIZE_GOODS_IMG;
    }

    public void setPRIZE_GOODS_IMG(String PRIZE_GOODS_IMG) {
        this.PRIZE_GOODS_IMG = PRIZE_GOODS_IMG == null ? null : PRIZE_GOODS_IMG.trim();
    }

    public String getPRIZE_GOODS_NUMBER() {
        return PRIZE_GOODS_NUMBER;
    }

    public void setPRIZE_GOODS_NUMBER(String PRIZE_GOODS_NUMBER) {
        this.PRIZE_GOODS_NUMBER = PRIZE_GOODS_NUMBER == null ? null : PRIZE_GOODS_NUMBER.trim();
    }

    public String getPRIZE_INSTRUCTION() {
        return PRIZE_INSTRUCTION;
    }

    public void setPRIZE_INSTRUCTION(String PRIZE_INSTRUCTION) {
        this.PRIZE_INSTRUCTION = PRIZE_INSTRUCTION == null ? null : PRIZE_INSTRUCTION.trim();
    }

    @Override
    public String toString() {
        return "Prize{" +
                "PRIZE_ID=" + PRIZE_ID +
                ", PRIZE_NAME='" + PRIZE_NAME + '\'' +
                ", PRIZE_USERNUMBER=" + PRIZE_USERNUMBER +
                ", PRIZE_GOODS='" + PRIZE_GOODS + '\'' +
                ", PRIZE_GOODS_IMG='" + PRIZE_GOODS_IMG + '\'' +
                ", PRIZE_GOODS_NUMBER='" + PRIZE_GOODS_NUMBER + '\'' +
                ", PRIZE_INSTRUCTION='" + PRIZE_INSTRUCTION + '\'' +
                '}';
    }

    public void setWorkList(List<UserWorkVo> workList) {
        this.workList = workList;
    }

    public List<UserWorkVo> getWorkList() {
        return workList;
    }
}